Integrand size = 22, antiderivative size = 148 \[ \int x^2 \sqrt {a+b x^n+c x^{2 n}} \, dx=\frac {x^3 \sqrt {a+b x^n+c x^{2 n}} \operatorname {AppellF1}\left (\frac {3}{n},-\frac {1}{2},-\frac {1}{2},\frac {3+n}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{3 \sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}}} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {1399, 524} \[ \int x^2 \sqrt {a+b x^n+c x^{2 n}} \, dx=\frac {x^3 \sqrt {a+b x^n+c x^{2 n}} \operatorname {AppellF1}\left (\frac {3}{n},-\frac {1}{2},-\frac {1}{2},\frac {n+3}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{3 \sqrt {\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}+1} \sqrt {\frac {2 c x^n}{\sqrt {b^2-4 a c}+b}+1}} \]
[In]
[Out]
Rule 524
Rule 1399
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {a+b x^n+c x^{2 n}} \int x^2 \sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}} \, dx}{\sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}}} \\ & = \frac {x^3 \sqrt {a+b x^n+c x^{2 n}} F_1\left (\frac {3}{n};-\frac {1}{2},-\frac {1}{2};\frac {3+n}{n};-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{3 \sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}}} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(366\) vs. \(2(148)=296\).
Time = 0.57 (sec) , antiderivative size = 366, normalized size of antiderivative = 2.47 \[ \int x^2 \sqrt {a+b x^n+c x^{2 n}} \, dx=\frac {x^3 \left (6 (3+n) \left (a+x^n \left (b+c x^n\right )\right )+2 a n (3+n) \sqrt {\frac {b-\sqrt {b^2-4 a c}+2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^n}{b+\sqrt {b^2-4 a c}}} \operatorname {AppellF1}\left (\frac {3}{n},\frac {1}{2},\frac {1}{2},\frac {3+n}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}},\frac {2 c x^n}{-b+\sqrt {b^2-4 a c}}\right )+3 b n x^n \sqrt {\frac {b-\sqrt {b^2-4 a c}+2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^n}{b+\sqrt {b^2-4 a c}}} \operatorname {AppellF1}\left (\frac {3+n}{n},\frac {1}{2},\frac {1}{2},2+\frac {3}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}},\frac {2 c x^n}{-b+\sqrt {b^2-4 a c}}\right )\right )}{6 (3+n)^2 \sqrt {a+x^n \left (b+c x^n\right )}} \]
[In]
[Out]
\[\int x^{2} \sqrt {a +b \,x^{n}+c \,x^{2 n}}d x\]
[In]
[Out]
Exception generated. \[ \int x^2 \sqrt {a+b x^n+c x^{2 n}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int x^2 \sqrt {a+b x^n+c x^{2 n}} \, dx=\int x^{2} \sqrt {a + b x^{n} + c x^{2 n}}\, dx \]
[In]
[Out]
\[ \int x^2 \sqrt {a+b x^n+c x^{2 n}} \, dx=\int { \sqrt {c x^{2 \, n} + b x^{n} + a} x^{2} \,d x } \]
[In]
[Out]
\[ \int x^2 \sqrt {a+b x^n+c x^{2 n}} \, dx=\int { \sqrt {c x^{2 \, n} + b x^{n} + a} x^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int x^2 \sqrt {a+b x^n+c x^{2 n}} \, dx=\int x^2\,\sqrt {a+b\,x^n+c\,x^{2\,n}} \,d x \]
[In]
[Out]